﻿/***********************************************************************
 * <copyright file="CountryRegion.cs" company="BUCA JSC">
 * -->    Copyright (C) statement. All right reserved
 * </copyright>
 * 
 * Created:   Tuanhm
 * Email:    Tuanhm@humg@gmail.com
 * Website:
 * Create Date: Thursday, March 27, 2014
 * Usage: 
 * 
 * RevisionHistory: 
 * Date    25/10/2013     Author  tuanhm             Description 
 * 
 * ************************************************************************/

using System;
using BusinessObjects.BusinessRules;

namespace BusinessObjects.BussinessDictionary
{

    /// <summary>
    /// 
    /// </summary>
    public class EmployTest : BusinessObject
    {
        /// <summary>
        /// </summary>
        public EmployTest()
        {
            ////validateId
            //AddRule(new ValidateId("DepartmentId"));
            ////validateRequired
            //AddRule(new ValidateRequired("UnitId"));
            //AddRule(new ValidateRequired("Code"));
            //AddRule(new ValidateRequired("Name"));
            ////validateLength
            //AddRule(new ValidateLength("Code", 0, 20));
        }


        /// <summary>
        /// Initializes a new instance of the <see cref="EmployTest"/> class.
        /// </summary>
        /// <param name="employId">The employ identifier.</param>
        /// <param name="name">The name.</param>
        /// <param name="salary">The salary.</param>
        /// <param name="departmentId">The department identifier.</param>
        public EmployTest(int employId, string name, decimal salary, int departmentId) 
            : this()
        {
            EmployId = employId;
            Name = name;
            Salary = salary;
            DepartmentId = departmentId;
        }
        /// <summary>
        /// </summary>
        public int EmployId { get; set; } 
        /// <summary>
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// </summary>
        public decimal Salary { get; set; }

        /// <summary>
        /// </summary>
        public int DepartmentId { get; set; }  

      
    }
}